package com.myhome.money.rabbitmq.moneyrabbitmq.hello;


import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import com.myhome.money.rabbitmq.moneyrabbitmq.model.User;

/**
 * @author 许路路
 */
@Component
@RabbitListener(queues = "user")
public class UserReceiver {

    @RabbitHandler
    public void process(User user) {
        System.out.println("user receive  : " + user);
    }

}
